<html>
    <head>
        <title>Error page</title>
    </head>
    <body>
        <div style="padding: 10px;" >
            {if isset($error)}
                <h3>{$error}</h3>
            {else}
                <h3>An error occured. Please try searching again.</h3>
            {/if}
            
            {if isset($currentPage)}
                <a href="{$currentPage}">Go back to the previous page</a>
            {else}
                <a href="./index.php">Go back to search page</a>
            {/if}
        </div>
    </body>
</html>